﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using MvcContrib.PortableAreas;

namespace MvcAppLogin
{
    public class LoginRegistration : PortableAreaRegistration
    {
        public override void RegisterArea(AreaRegistrationContext context, IApplicationBus bus)
        {
            bus.Send(new PortableAreaStartupMessage(this.AreaName));

            context.MapRoute("Login",
                "Login/{controller}/{action}/{id}",
                new { controller = "Login", action = "Index", id = "" });

            RegisterAreaEmbeddedResources();
        }

        public override string AreaName
        {
            get { return "Login"; }
        }
    }
}
